import { http } from "@/utils/http";

/** 获取公司信息 */
export function getUserDetail(data?: object): Promise<UserDetailInfoData> {
  return http.request({
    url: "/userCenter/getUserDetail",
    method: "post",
    data
  });
}
/** 资产列表 */
export function getSpecificationList(
  data?: object
): Promise<AssetDetailsInfoData> {
  return http.request({
    url: "/userCenter/getSpecificationList",
    method: "post",
    data
  });
}
/** 规格详情 */
export interface AssetDetailsInfoData {
  /** 资产详情 */
  assetBalance: number;
  /** 规格列表 */
  specificationList: specificationInfoData[];
}
/** 规格详情 */
export interface specificationInfoData {
  /** 资产数量 */
  assetAmount: number;
  /** 渠道比例 */
  chlRatio: number;
  /** 渠道类型 */
  chlType: number;
  /** 编号 */
  id: string;
  /** 原价 */
  originPrice: number;
  /** 价格 */
  price: number;
  /** 排序 */
  sort: number;
  /** 标签 */
  tag: string;
}

/** 用户详情 */
export interface UserDetailInfoData {
  /** 资产详情 */
  assetDetail: AssetDetailInfoData;
  /** 头像 */
  headimgurl: string;
  /** 手机号 */
  mobile: string;
  /** 昵称 */
  nickname: string;
  /** 用户来源 */
  userFrom: number;
  /** 用户ID */
  userId: string;
  /** 用户信息认证状态 */
  userInfoAuthStatus: number;
  /** 用户创建资产 */
  userMakeAssetVo: UserMakeAssetInfoData;
}
/** 用户创建资产详情 */
export interface UserMakeAssetInfoData {
  humanAmount: number;
}
/** 资产详情 */
export interface AssetDetailInfoData {
  aiCoinAmount: number;
  aiCoinBalance: number;
  exTimbreAmount: number;
  exTimbreBalance: number;
  humanAmount: number;
  humanBalance: number;
  humanNormalAmount: number;
  humanNormalBalance: number;
  humanNormalCustomAmount: number;
  humanNormalCustomBalance: number;
  noTrainFreeVideoAmount: number;
  noTrainFreeVideoBalance: number;
  noTrainVideoAmount: number;
  noTrainVideoBalance: number;
  timbreAmount: number;
  timbreBalance: number;
  totalHumanAmount: number;
  totalHumanBalance: number;
  videoMakeBalance: number;
}
